package test.controllers.admin.sub.sub;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.google.code.lightsomy.annotations.Action;
import com.google.code.lightsomy.annotations.Controller;

@Controller
public class Index {
	
	@Action
	public void index(HttpServletRequest req, HttpServletResponse res) throws IOException {
		res.getWriter()
			.append("subsubAdmin")
			.flush();
	}
	
	@Action(route="^/secret$")
	public void bla(HttpServletRequest req, HttpServletResponse res) throws IOException {
		res.getWriter()
			.append("secret")
			.flush();
	}
	
	@Action
	public void abcd(HttpServletRequest req, HttpServletResponse res) throws IOException {
		res.getWriter()
			.append("wow")
			.flush();
	}
}
